<?php defined('SYSPATH') or die('No direct script access.');

class Model_Notes_User extends Model_Auth_User {

  protected $_table_name = 'notes_user';

  protected $_sorting = array('id' => 'desc');

  /**
   * Validate
   */
  public function validate_add_note($array) {

    $validation = Validate::factory($array)
                    ->filter(TRUE, 'trim')
                    ->rule('text', 'not_empty')
                    ->rule('date', 'not_empty');

    return $validation;
  }

}
